import { http } from '@/utils/http'

export interface IMOrderListByPage {
  listType: string
  pageNo: any
  pageSize: any
  storeCode: string
  orderCode: string
}
// 分页查询订单列表
export const getOrderListByPage = (data: IMOrderListByPage) => {
  return http.get('/jeecg-boot/htmmp/myorder/getOrderListByPage', data)
}

export interface IMgetOrderDetail {
  orderCode: string
  upcCode: any
}
// 查询订单详情
export const getOrderDetail = (data: IMOrderListByPage) => {
  return http.get('/jeecg-boot/htmmp/myorder/getOrderDetail', data)
}

export interface IMLogiList {
  orderCode: string
}
// 查询物流列表
export const getLogiList = (data: IMLogiList) => {
  return http.get('/jeecg-boot/htmmp/myorder/getLogiList', data)
}

export interface IMQQueryTrack {
  orderCode: string
  logicom: string
  logicode: string
}
// 查询物流轨迹
export const queryTrack = (data: IMQQueryTrack) => {
  return http.get('/jeecg-boot/htmmp/myorder/queryTrack', data)
}
export interface IMUnifieAppletdorder {
  orderCode: string
}
// 盛付通半屏小程序支付接口
export const preUnifieAppletdorder = (data: IMUnifieAppletdorder) => {
  return http.get('/jeecg-boot/htmmp/shopcart/preUnifieAppletdorder', data)
}

export interface IMQRcode {
  orderCode: string
}
// 查询二维码
export const getOrderCode = (data: IMQRcode) => {
  return http.get('/jeecg-boot/htmmp/myorder/getOrderQrcode', data)
}
export interface IMReciveOrde {
  orderCode: string
}
// 确认收货
export const getReciveOrder = (data: IMReciveOrde) => {
  return http.get('/jeecg-boot/htmmp/myorder/reciveOrder', data)
}
